package com.hnjfzn.common.core.exception.sms;

/**
 * 计划策略异常

 */
public class SmsException extends Exception
{
    private static final long serialVersionUID = 1L;

    private Code code;

    public SmsException(String msg, Code code)
    {
        this(msg, code, null);
    }

    public SmsException(String msg, Code code, Exception nestedEx)
    {
        super(msg, nestedEx);
        this.code = code;
    }

    public Code getCode()
    {
        return code;
    }

    public enum Code
    {
        REPEAT_CLICK, SMS_INVALID, SMS_CAPTCHA_ERROR, PARAM_ERROR, GET_SMS_ERROR, SMS_SEND_ERROR
    }
}